﻿using System.Data.Entity;
using Quba.Entities.Database.User;

namespace Quba.Framework.Database
{
    public class QubaContextInitilaizer : DropCreateDatabaseIfModelChanges<QubaContext>
    {
        protected override void Seed(QubaContext context)
        {
            base.Seed(context);

            context.Admins.Add(new Admin
                                   {
                                       Username = "Admin",
                                       Password = "Admin"
                                   });

            context.SaveChanges();
        }
    }
}